package io.bluerain.javafx.fxml;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Control;
import javafx.stage.Stage;

import java.net.URL;

/**
 * Created by foredawn on 15-8-28.
 * fxml控制器
 */
public class Controller extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    public void say() {
        System.out.println("点击");
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        URL location = getClass().getClassLoader().getResource("App.fxml");
        Parent root = FXMLLoader.load(location);
        primaryStage.setScene(new Scene(root));
        primaryStage.show();
    }
}
